﻿
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using YDModel;

namespace YDServices
{
    public class ErrorLogService : BaseService
    {
       
        /// <summary>
        /// 新增
        /// </summary>
        /// <param name="tu"></param>
        public void Error(T_Error_Log tu)
        {
            try
            {
                using (YDDataEntities db = new YDDataEntities())
                {  
                    db.T_Error_Log.Add(tu);
                    db.SaveChanges();
                }
            }
            catch (Exception ex)
            {
                Errors.Add(ex);
                WriteException(ex);
            }
        } 

    }
}
